package top.soulblack.purchasesale.model;

import lombok.Data;
import top.soulblack.purchasesale.common.enums.OrderStatusEnum;
import top.soulblack.purchasesale.common.enums.OrderTypeEnum;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: 韦溜溜
 * @Description:
 * @Date: Create in 21:35 2019/7/10
 */
@Data
public class OrderMaster {

    private String orderId;

    private String goodsBarCode;

    private String goodsName;

    private Integer inStoreId;

    private Integer outStoreId;

    private Integer inShopId;

    private Integer outShopId;

    private BigDecimal orderAmount;
    /**
     * 订单申请的openId
     */
    private String openid;

    /**
     * 订单状态, 默认0为草稿， 1为等待确认，2为正在调拨，3成功调拨 4为调拨取消（失败）
     */
    private Integer orderStatus = OrderStatusEnum.DRAFT.getCode();

    /**
     * 订单类型，默认0为调拨单 1为采购 2为销售
     */
    private Integer orderType = OrderTypeEnum.REQUISITIONNOTE.getCode();

    private String goodsNumber;

    private String remarks;

    /**
     * 供应商或者客户ID
     */
    private Integer customerSuppliersId;

    private Date createTime;

    private Date updateTime;
}
